<template>
  <footer class="footer">
    <div class="footer-content">
      <!-- 品牌区域 -->
      <div class="footer-brand">
        <img src="../assets/image/Frame 28.png" alt="Logo" class="footer-logo">
        <div class="social-links">
          <a href="#" class="social-link" v-for="(icon, index) in socialIcons" :key="index">
            <i :class="icon"></i>
          </a>
        </div>
      </div>

      <!-- 简介区域 -->
      <div class="footer-about">
        <h3>关于我们</h3>
        <div class="about-content">
          <p class="about-text">
            我们致力于为您提供最优质的旅游体验。系统支持完善的会员服务，包括景点预订、路线规划、酒店预约等全方位旅游服务。
            专业的管理团队为您保驾护航，让每一次旅程都充满惊喜与美好。
          </p>
          <el-button type="primary" class="learn-more" @click="showMore">
            了解更多
          </el-button>
        </div>
      </div>

      <!-- 联系方式区域 -->
      <div class="footer-contact">
        <h3>联系我们</h3>
        <div class="contact-items">
          <div class="contact-item" v-for="(item, index) in contactInfo" :key="index">
            <i :class="item.icon"></i>
            <span>{{ item.text }}</span>
          </div>
        </div>
      </div>
    </div>

    <!-- 版权信息 -->
    <div class="footer-bottom">
      <p>© {{ currentYear }} 旅游服务平台. All rights reserved.</p>
      <div class="footer-links">
        <a href="#">隐私政策</a>
        <a href="#">服务条款</a>
        <a href="#">网站地图</a>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  data() {
    return {
      currentYear: new Date().getFullYear(),
      socialIcons: [
        'fab fa-weixin',
        'fab fa-weibo',
        'fab fa-qq',
        'fas fa-envelope'
      ],
      contactInfo: [
        { icon: 'fas fa-envelope', text: 'contact@travel.com' },
        { icon: 'fab fa-weixin', text: 'Travel-Service' },
        { icon: 'fab fa-qq', text: '800-820-8820' },
        { icon: 'fas fa-phone', text: '400-123-4567' }
      ]
    }
  },
  methods: {
    showMore() {
      this.$notify({
        title: '关于我们',
        message: '感谢您的关注！更多详细信息即将上线...',
        type: 'success',
        duration: 3000
      });
    }
  }
}
</script>

<style scoped>
.footer {
  background: linear-gradient(to right, #2c3e50, #3498db);
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #e74c3c, #f1c40f, #2ecc71, #3498db);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  padding: 0 20px;
}

/* 品牌区域样式 */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* 简介区域样式 */
.footer-about h3 {
  font-size: 1.5em;
  margin-bottom: 20px;
  position: relative;
}

.footer-about h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #3498db;
}

.about-text {
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.learn-more {
  background: transparent;
  border: 2px solid #fff;
  padding: 8px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.learn-more:hover {
  background: #fff;
  color: #2c3e50;
}

/* 联系方式区域样式 */
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  width: 20px;
  color: #3498db;
}

/* 底部版权信息样式 */
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* 响应式设计 */
@media (max-width: 968px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

/* 添加动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-content > div {
  animation: fadeInUp 0.6s ease forwards;
}

.footer-content > div:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-content > div:nth-child(3) {
  animation-delay: 0.4s;
}
</style>